package syntaxTree;

import java.util.LinkedList;

public class Program 
{
  public MainClass m;
  public LinkedList<ClassDecl> c;
  
  public Program (MainClass m, LinkedList<ClassDecl> c)
  {
    this.m = m;
    this.c = c;
  }
  
  public String toString()
  {
    String result = "";
    result += m.toString ();
    for (ClassDecl x:c)
    {
    result += x.toString();
    }
    
    return result;
  }
  
}
